﻿using Microsoft.AspNetCore.SignalR.Client;
using System;

namespace IceDog.SignalR.Chat.Cmd
{
    class Program
    {
        static void Main(string[] args)
        {
            string host = "192.168.11.24:81";
            //string url = $"http://{host}/chatHub";
            string url = $"http://{host}/MsgHub";
            var builder = new HubConnectionBuilder();
            builder.WithUrl(url);
            HubConnection connection = builder.Build();
            connection.StartAsync().Wait();
            while (true)
            {
                Console.WriteLine("input:");
                connection.SendAsync("SendMessage", "ano", Console.ReadLine()).Wait();
            }
            
        }
    }
}
